Refreshing patches for new upstream version.
authorBernd Zeimetz <bernd@bzed.de>
Mon, 14 Feb 2011 12:51:23 +0000 (13:51 +0100)
committerBernd Zeimetz <bernd@bzed.de>
Mon, 14 Feb 2011 13:14:21 +0000 (14:14 +0100)
debian/patches/gpsbabelfe_disable_version_check
debian/patches/gpsbabelfe_do-not-check-for-newer-version

index 33b86339496c24348534ba9b9e1ac2e51e04ceb8..b4bd1a9e2a7dc30aba716a8809e836b9d4817521 100644 (file)
@@ -1,20 +1,5 @@
 Disable version mismatch check.
 
---- a/gui/mainwindow.cpp
-+++ b/gui/mainwindow.cpp
-@@ -198,12 +198,6 @@ MainWindow::MainWindow(QWidget* parent):
-                              allowBetaUpgrades());
-   }
--  if (!bd.ignoreVersionMismatch && babelVersion != VERSION) {
--    VersionMismatch vm(0, babelVersion, QString(appName) + QString(" Version " VERSION));
--
--    vm.exec();
--    bd.ignoreVersionMismatch = vm.neverAgain();
--  }
- }
- //------------------------------------------------------------------------
 --- a/gui/preferences.ui
 +++ b/gui/preferences.ui
 @@ -53,13 +53,6 @@
@@ -33,15 +18,15 @@ Disable version mismatch check.
       </widget>
 --- a/gui/preferences.cpp
 +++ b/gui/preferences.cpp
-@@ -40,7 +40,6 @@ Preferences::Preferences(QWidget* parent
+@@ -41,7 +41,6 @@ Preferences::Preferences(QWidget* parent
  
    ui_.startupCheck->setChecked(bd_.startupVersionCheck);
    ui_.reportStatisticsCheck->setChecked(bd_.reportStatistics);
 -  ui_.ignoreVersionMismatchCheck->setChecked(bd_.ignoreVersionMismatch);
-   connect (ui_.buttonBox, SIGNAL(accepted()), this, SLOT(acceptClicked()));
-   connect (ui_.buttonBox, SIGNAL(rejected()), this, SLOT(rejectClicked()));
-@@ -80,7 +79,6 @@ void Preferences::acceptClicked()
+   // Because of an unfortunate bug in 1.4.0, we turn this off in 1.4.1.
+   if (VERSION == "1.4.1") 
+     bd_.ignoreVersionMismatch = false;
+@@ -84,7 +83,6 @@ void Preferences::acceptClicked()
  
    bd_.startupVersionCheck = ui_.startupCheck->isChecked();
    bd_.reportStatistics = ui_.reportStatisticsCheck->isChecked();
index fff430872b4a4abd5ede9ad0bce18f38c9384180..a429fdf1fbab85e243e845184d0486977d5c0741 100644 (file)
@@ -18,15 +18,15 @@ Disable check for newer versions on start.
             <string>Anonymously report usage data.</string>
 --- a/gui/preferences.cpp
 +++ b/gui/preferences.cpp
-@@ -38,7 +38,6 @@ Preferences::Preferences(QWidget* parent
+@@ -39,7 +39,6 @@ Preferences::Preferences(QWidget* parent
  {
    ui_.setupUi(this);
  
 -  ui_.startupCheck->setChecked(bd_.startupVersionCheck);
    ui_.reportStatisticsCheck->setChecked(bd_.reportStatistics);
-   connect (ui_.buttonBox, SIGNAL(accepted()), this, SLOT(acceptClicked()));
-@@ -77,7 +76,6 @@ void Preferences::acceptClicked()
+   // Because of an unfortunate bug in 1.4.0, we turn this off in 1.4.1.
+   if (VERSION == "1.4.1") 
+@@ -81,7 +80,6 @@ void Preferences::acceptClicked()
      formatList_[i].setHidden(item->checkState() == Qt::Unchecked);
    }
  
@@ -52,10 +52,10 @@ Disable check for newer versions on start.
      <addaction name="separator"/>
      <addaction name="actionAbout"/>
 -    <addaction name="actionUpgradeCheck"/>
-    </widget>
-    <addaction name="menuFile"/>
-    <addaction name="menuHelp"/>
-@@ -667,11 +666,6 @@
+     <addaction name="separator"/>
+     <addaction name="actionVisit_Website"/>
+     <addaction name="actionMake_a_Donation"/>
+@@ -670,11 +669,6 @@
      <string>Preferences...</string>
     </property>
    </action>
@@ -64,16 +64,47 @@ Disable check for newer versions on start.
 -    <string>Check for Upgrade</string>
 -   </property>
 -  </action>
-  </widget>
-  <resources>
-   <include location="app.qrc"/>
+   <action name="actionVisit_Website">
+    <property name="text">
+     <string>Visit Website...</string>
 --- a/gui/mainwindow.cpp
 +++ b/gui/mainwindow.cpp
-@@ -147,7 +147,6 @@ MainWindow::MainWindow(QWidget* parent):
-   connect(ui.actionQuit, SIGNAL(triggered()), this, SLOT(closeActionX()));
-   connect(ui.actionHelp, SIGNAL(triggered()), this, SLOT(helpActionX()));
+@@ -153,7 +153,6 @@ MainWindow::MainWindow(QWidget* parent):
    connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(aboutActionX()));
+   connect(ui.actionVisit_Website, SIGNAL(triggered()), this, SLOT(visitWebsiteActionX()));
+   connect(ui.actionMake_a_Donation, SIGNAL(triggered()), this, SLOT(donateActionX()));
 -  connect(ui.actionUpgradeCheck, SIGNAL(triggered()), this, SLOT(upgradeCheckActionX()));
    connect(ui.actionPreferences, SIGNAL(triggered()), this, SLOT(preferencesActionX()));
  
    connect(ui.inputFormatCombo,  SIGNAL(currentIndexChanged(int)),
+@@ -197,19 +196,8 @@ MainWindow::MainWindow(QWidget* parent):
+   //--- Restore from registry
+   restoreSettings();
+-
+   upgrade = new UpgradeCheck(parent, formatList, bd);
+-  if (bd.startupVersionCheck) {
+-    upgrade->checkForUpgrade(babelVersion, bd.upgradeCheckTime, 
+-                             allowBetaUpgrades());
+-  }
+-
+-  if (!bd.ignoreVersionMismatch && babelVersion != VERSION) {
+-    VersionMismatch vm(0, babelVersion, QString(VERSION));
+-    vm.exec();
+-    bd.ignoreVersionMismatch = vm.neverAgain();
+-  }
+ }
+ //------------------------------------------------------------------------
+@@ -926,10 +914,6 @@ void MainWindow::applyActionX()
+ //------------------------------------------------------------------------
+ void MainWindow::closeActionX()
+ {
+-  QDateTime wt= upgrade->getUpgradeWarningTime();
+-  if (wt.isValid()) {
+-    bd.upgradeCheckTime = wt;
+-  }
+   bd.runCount++;
+   QDateTime now = QDateTime::currentDateTime();